package io.renren.modules.combat.service.impl;

import io.renren.modules.combat.entity.TFightInformationEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.combat.dao.TFightPeopleDao;
import io.renren.modules.combat.entity.TFightPeopleEntity;
import io.renren.modules.combat.service.TFightPeopleService;


@Service("tFightPeopleService")
public class TFightPeopleServiceImpl extends ServiceImpl<TFightPeopleDao, TFightPeopleEntity> implements TFightPeopleService {

    @Autowired
    private TFightPeopleDao tFightPeopleDao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TFightPeopleEntity> page = this.page(
                new Query<TFightPeopleEntity>().getPage(params),
                new QueryWrapper<TFightPeopleEntity>()
        );

        return new PageUtils(page);
    }

    /**
     * 统计 立功受奖
     */
    public List<TFightPeopleEntity> getLGSJ(){
        return tFightPeopleDao.getLGSJ();
    }

}